package chapter92;

public class Person {
    int id;
    String name;

    public  Person() {
        System.out.println("无参构造方法被调用");
    }
    public Person(int id, String name) {
        System.out.println("有参构造方法被调用");
        this.id = id;
        this.name = name;
    }

    public void changName(Person p1){
        p1.name="lisi";
    }

}
